package inclass;

public class MainClass {

	public static void main(String[] args) {
		Account a1 = new Account("Bob", "Jones", 253.45 );
		Account a2 = new Account("Bob", "Jones", 253.45 );
		
		if (a1 == a2)
			System.out.println(" a1 and a2 are the same");
		else
			System.out.println(" a1 and a2 are different");
		System.out.println();

		/*
		int in1 = 23;
		int in2 = 23;
		int in3 = 20 + 3;
		System.out.println("in1 is "+ in1);
		System.out.println("in2 is "+ in2);
		System.out.println("in3 is "+ in3);
		if (in1 == in2)
			System.out.println(" in1 and in2 are the same");
		else
			System.out.println(" in1 and in2 are different");
		if (in1 == in3)
			System.out.println(" in1 and in3 are the same");
		else
			System.out.println(" in1 and in3 are different");
		/**/

		/*
		String s1 = "Hello";
		String s2 = "Hello";
		String s3 = new String("Hel")  + new String( "lo" );
		System.out.println("s1 is "+ s1);
		System.out.println("s2 is "+ s2);
		System.out.println("s3 is "+ s3);
		if (s1 == s2)
			System.out.println(" s1 and s2 are the same");
		else
			System.out.println(" s1 and s2 are different");
		if (s1 == s3)
			System.out.println(" s1 and s3 are the same");
		else
			System.out.println(" s1 and s3 are different");
		System.out.println();
		*/

		/*
		Integer i1 = 23;
		Integer i2 = 23;
		Integer i3 = new Integer( 20 )  + new Integer( 3 );
		System.out.println("i1 is "+ i1);
		System.out.println("i2 is "+ i2);
		System.out.println("i3 is "+ i3);
		if (i1 == i2)
			System.out.println(" i1 and i2 are the same");
		else
			System.out.println(" i1 and i2 are different");
		if (i1 == i3)
			System.out.println(" i1 and i3 are the same");
		else
			System.out.println(" i1 and i3 are different");
		*/
	}

}
